package person.learn.conf.jackson;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;

import java.util.ArrayList;
import java.util.List;

///**
// * Created by barton on 16-5-23.
// */
//@Configuration
//public class JacksonConfig {
//
//    @Bean(name = "mappingJackson2HttpMessageConverter")
//    public List<HttpMessageConverter> mappingJackson2HttpMessageConverter() {
//        List<HttpMessageConverter> converters = new ArrayList<>();
//        converters.add(new MappingJackson2HttpMessageConverter());
//        return converters;
//    }
//}
